package com.letoken.platform.app.controller;

import com.letoken.platform.app.service.AppArticleService;
import com.letoken.platform.pub.annotation.auth.NotAuthorization;
import com.letoken.platform.pub.res.ApiResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wyl
 * @date 2022/12/28 15:11
 * @Version 1.0
 */
@RestController
@RequestMapping("/article")
@Api(tags = "我的-系统文章", description = "系统文章接口")
public class AppArticleController {
    @Autowired
    private AppArticleService appArticleService;

    @NotAuthorization
    @PostMapping("/useragreement/show")
    @ApiOperation(value = "用户协议", notes = "用户协议")
    public ApiResponse<String> queryUserAgreementList() {
        return ApiResponse.create(appArticleService.queryUserAgreementList());
    }

    @NotAuthorization
    @PostMapping("/aboutus/show")
    @ApiOperation(value = "关于我们", notes = "关于我们")
    public ApiResponse<String> queryAboutUsList() {
        return ApiResponse.create(appArticleService.queryAboutUsList());
    }
}
